package com.itheima.day11.charstream.test6;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("myCode\\src\\\\com\\itheima\\day11\\c.txt"));

        char[] chars = new char[1024];
        int len;
        while ((len = br.read(chars)) != -1) {
            System.out.print(new String(chars, 0, len));
        }
        br.close();

    }
}
